From: Andres Lagar-Cavilla Date: Thu, 24 Nov 2011 15:45:19 +0000 (+0000) Subject: Properly compare "pci" token when groking serial port config X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=b4c64fb4437dfcea6e5d8421d9e55ae1ddb29da2;p=xen.git Properly compare "pci" token when groking serial port config Signed-off-by: Andres Lagar-Cavilla Committed-by: Keir Fraser --- diff --git a/xen/drivers/char/ns16550.c b/xen/drivers/char/ns16550.c index e09e30ddef..68c3649354 100644 --- a/xen/drivers/char/ns16550.c +++ b/xen/drivers/char/ns16550.c @@ -554,7 +554,7 @@ static void __init ns16550_parse_port_config( if ( *conf == ',' ) { conf++; - if ( strncmp(conf, "pci", 5) == 0 ) + if ( strncmp(conf, "pci", 3) == 0 ) { if ( pci_uart_config(uart, 1/* skip AMT */, uart - ns16550_com) ) return;